import request from '@/utils/request'

export function jobPage(params: any) {
    return request('get', '/job/page', {params})
}

export function deleteJob(params: any) {
    return request('delete', '/job/' + params)
}

export function saveJob(data: any) {
    return request('post', '/job', data)
}

export function updateJob(data: any) {
    return request('put', '/job', data)
}

export function statusJob(data: any) {
    return request('put', '/job/status/change', data)
}

export function runJob(data: any) {
    return request('put', '/job/run', data)
}


export function jobLogPage(data: any) {
    return request('post', '/job/log/page', data)
}

export function deleteJobLog(params: any) {
    return request('delete', '/job/log/' + params)
}
